﻿<%@ Page Title="" Language="C#" MasterPageFile="~/DepartmentMaster.Master" AutoEventWireup="true"
    CodeBehind="Search.aspx.cs" Inherits="Department.Search" %>

<asp:Content ID="ContentHead" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="ContentMain" ContentPlaceHolderID="mainContentHolder" runat="server">
    <%--Search results ListView--%>
    <asp:ListView ID="ListSearch" runat="server" OnItemDataBound="ListSearch_ItemDataBound">
        <LayoutTemplate>
            <div id="itemPlaceholderContainer" runat="server">
                <span id="itemPlaceholder" runat="server" />
            </div>
        </LayoutTemplate>
        <ItemTemplate>
            <ul>
                <li>
                    <asp:HyperLink ID="HyperLinkSearchResults" runat="server" Text='<%#Eval("ColumnValue")%>'
                    NavigateUrl='<%#DataBinder.Eval(Container.DataItem,"URL") +""+ DataBinder.Eval(Container.DataItem,"CType") %>'></asp:HyperLink></li>
            </ul>
        </ItemTemplate>
    </asp:ListView>
    <asp:DataPager ID="pagerListSearch" runat="server" PageSize="20" PagedControlID="ListSearch">
        <Fields>
            <asp:NumericPagerField ButtonType="Link" NextPageText="Следваща" PreviousPageText="Предишна" />
        </Fields>
    </asp:DataPager>
    <asp:Label ID="NotFoundLabel" Visible="false" runat="server" Text="Няма намерени резултати."></asp:Label>
</asp:Content>
